package cn.edu.suse.epilepsy.service;

import cn.edu.suse.epilepsy.common.BizException;
import cn.edu.suse.epilepsy.common.R;
import cn.edu.suse.epilepsy.entity.dto.PageDto;
import cn.edu.suse.epilepsy.entity.dto.PatientEduActivityDto;
import cn.edu.suse.epilepsy.entity.pojo.PatientEduActivity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface PatientEduActivityService extends IService<PatientEduActivity> {

    /**
     * 模糊查寻
     * @param dto
     * @return
     * @throws BizException
     */
    List<PatientEduActivity> fuzzQuery(PatientEduActivityDto dto) throws BizException;

    /**
     * 查询所有患教活动
     * @return
     */
    R getAll(PageDto pageDto);

    /**
     * 新增患教活动
     * @param patientEduActivity
     * @return
     */
    R addPatient(PatientEduActivity patientEduActivity);
}
